home *** CD-ROM | disk | FTP | other *** search
/ A.C.E. 3 / ACE CD 3.iso / files / utils / cando12.dms / in.adf / HelpFiles / FileIO / CMD.DATA next >
Encoding:
Text File  |  1990-01-29  |  2.3 KB  |  85 lines

  1. |openfile|
  2. windowtitle `OpenFile "filename","Buffer Name",IOFlags,AccessFlags
  3. printlf `Opens a file for input/output purposes.
  4. printlf `Users can have as many files open as
  5. printlf `memory permits.  The IOFlags are READONLY
  6. printlf `or WRITEONLY.  AccessFlags are NEWFILE,
  7. printlf `OLDFILE or APPEND.  See page 6-53 for more
  8. print `info.  SEE ALSO: `
  9. subject `Close`Close`
  10. end
  11.  
  12. |filewriteline|
  13. windowtitle `FileWriteLine "Buffer Name","String"
  14. printlf `Output the "String" to the file referenced
  15. printlf `by "Buffer Name".  This outputs a linefeed
  16. printlf `at the end of the write.
  17. printlf
  18. print `SEE ALSO: `
  19. subject `FileReadLine`FileReadLine`
  20. print ` & `
  21. subject `FileWriteChars`FileWriteChars`
  22. end
  23.  
  24. |filereadline|
  25. windowtitle `FileReadLine "Buffer Name",VariableName
  26. printlf `Reads a line from a previously opened file
  27. printlf `and places the string into the specified
  28. printlf `VariableName.
  29. printlf
  30. print `SEE ALSO: `
  31. subject `FileWriteLine`FileWriteLine`
  32. print ` & `
  33. subject `FileReadChars`FileReadChars`
  34. end
  35.  
  36. |filereadchars| 
  37. windowtitle `FileReadChars "Buffer Name",VariableName,<NumberOfChars>
  38. printlf `Reads in <NumberOfChars> characters from
  39. printlf `a file designated by "Buffer Name" and
  40. printlf `places these characters into the string
  41. printlf `variable VariableName.
  42. printlf
  43. print `SEE ALSO: `
  44. subject `FileReadLine`FileReadLine`
  45. print ` & `
  46. subject `FileWriteChars`FileWriteChars`
  47. end
  48.  
  49. |filewritechars|
  50. windowtitle `FileWriteChars "Buffer Name","String"{,<length>}
  51. printlf `Output the characters contained in the
  52. printlf `"String" to the file associated with the
  53. printlf `"Buffer Name".  It will not output a line
  54. print `feed as `
  55. subject `FileWriteLine`FileWriteLine`
  56. printlf ` does.  A length may
  57. printlf `be specified.
  58. print `SEE ALSO: `
  59. subject `FileReadChars`FileReadChars`
  60. end
  61.  
  62. |setfilebufsize|
  63. windowtitle 'SetFileBufferSize <sizeinkilos>
  64. printlf `Sets the file input/output buffer size in
  65. printlf `kilobytes.  The default is 4 Kilobytes.
  66. printlf `It only applies to buffers opened after 
  67. printlf `this command is used.
  68. printlf
  69. print `SEE ALSO: `
  70. subject `OpenFile`OpenFile`
  71. end
  72.  
  73. |close| 
  74. windowtitle `Close "Buffer Name"
  75. printlf `Closes the file associated with the
  76. printlf `specified buffer name.  Any changes
  77. printlf `made to the buffer will be written
  78. printlf `to the buffer at this time.
  79. printlf
  80. print `SEE ALSO: `
  81. subject `OpenFile`OpenFile`
  82. end
  83.  
  84.  
  85.